package net.siufung.market.base.region.controller.model.vo;

import cn.hutool.core.lang.tree.TreeNode;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author 陈建峰
 * @since 2022/5/18 1:54 下午
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RegionTreeNode extends TreeNode<Integer> {

    private static final long serialVersionUID = -7098419630399009101L;

    /**
     * 区划代码
     */
    @ApiModelProperty(value = "区划代码")
    private String code;

    /**
     * 简称
     */
    @ApiModelProperty(value = "简称")
    private String shortName;

    /**
     * 等级
     */
    @ApiModelProperty(value = "等级")
    private Integer level;

    /**
     * 经度
     */
    @ApiModelProperty(value = "经度")
    private String lng;

    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度")
    private String lat;

    /**
     * 次序
     */
    @ApiModelProperty(value = "次序")
    private Integer sequence;

    public RegionTreeNode(Integer id, Integer parentId,
                        String name, Integer weight, String code,
                        String lng, String lat, Integer level) {
        super(id,parentId,name,weight);
        this.code = code;
        this.level = level;
        this.lng = lng;
        this.lat = lat;
    }

}
